﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmOrdenCompra.aspx.cs" Inherits="SISLOG.Web.frmOrdenCompra" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    Burcar:

    <asp:TextBox ID="TextCriterio" runat="server" Width="209px"></asp:TextBox>




    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;




    <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />




    <br />




    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSourceOrdenCompra">
        <Columns>
            <asp:BoundField DataField="OrdenCompra" HeaderText="OrdenCompra" 
                SortExpression="OrdenCompra" />
            <asp:BoundField DataField="fechaOrdenCompra" HeaderText="fechaOrdenCompra" 
                SortExpression="fechaOrdenCompra" />
            <asp:BoundField DataField="responsable" HeaderText="responsable" 
                SortExpression="responsable" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSourceOrdenCompra" runat="server" 
        onobjectcreating="ObjectDataSourceOrdenCompra_ObjectCreating" 
        SelectMethod="GetAllFromOrdenCompraByCriterio" 
        TypeName="SISLOG.BusinessLogic.OrdenCompraBL" 
        onselecting="ObjectDataSourceOrdenCompra_Selecting">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextCriterio" DefaultValue="%" Name="criterio" 
                PropertyName="Text" Type="DateTime" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
